package com.kc.business.domain.order.dto;

import com.kc.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @ClassName BizSaleRankingDTO
 * @Description 销售排行数据DTO
 * @Author wangdongliang
 * @Date 2021/5/30 13:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BizSaleRankingDTO implements Comparable<BizSaleRankingDTO> {
    /*平台名称*/
    @Excel(name = "平台名称", width = 65)
    private String platformName;
    /*订单总金额*/
    @Excel(name = "提交订单总金额", width = 45)
    private BigDecimal orderMoney;
    /*支付订单金额*/
    @Excel(name = "支付订单金额", width = 45)
    private BigDecimal payMoney;

    @Override
    public int compareTo(BizSaleRankingDTO o) {
        return this.payMoney.compareTo(o.getPayMoney());
    }
}
